<template>
  <div>
    <p>{{ $store.state.count }}</p>
    <p>{{ oddOrEven }}</p>
    <button @click="INCREMENT(1)">+</button>
    <button @click="DECREMENT(1)">-</button>
    <button @click="incrementIffOdd(1)">incrementIffOdd</button>
    <button @click="incrementAsync(1)">incrementAsync</button>
  </div>
</template>

<script>
import {mapState,mapGetters,mapActions,mapMutations} from 'vuex'
export default {
  name: 'App',
  methods: {
    ...mapActions(['incrementIffOdd','incrementAsync']),
    ...mapMutations(['INCREMENT','DECREMENT']),
  },
  computed:{
      ...mapState(['count']),
      ...mapGetters(['oddOrEven'])
  }
}
</script>

<style></style>
